<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
 wx.config({
    //debug: true,
    appId: '{$jsapi.appId}',
    timestamp: '{$jsapi.timestamp}',
    nonceStr: '{$jsapi.nonceStr}',
    signature: '{$jsapi.signature}',
    jsApiList: [
      	//所有要调用的 API 都要加到这个列表中
        'checkJsApi',
        'onMenuShareTimeline',
        'onMenuShareAppMessage',
        'onMenuShareQQ',
        'onMenuShareWeibo',
        'onMenuShareQZone',
        'hideMenuItems',
        'showMenuItems',
        'hideAllNonBaseMenuItem',
        'showAllNonBaseMenuItem',
        'translateVoice',
        'startRecord',
        'stopRecord',
        'onRecordEnd',
        'playVoice',
        'pauseVoice',
        'stopVoice',
        'uploadVoice',
        'downloadVoice',
        'chooseImage',
        'previewImage',
        'uploadImage',
        'downloadImage',
        'getNetworkType',
        'openLocation',
        'getLocation',
        'hideOptionMenu',
        'showOptionMenu',
        'closeWindow',
        'scanQRCode',
        'chooseWXPay',
        'openProductSpecificView',
        'addCard',
        'chooseCard',
        'openCard'
    ]
  });

wx.ready(function () {
	//2.1 监听“分享给朋友”，按钮点击、自定义分享内容及分享结果接口
    wx.onMenuShareAppMessage({
      title: '只因您挺我，我洁净所能"',
      desc: '重要的事情说三遍：挺赞88洗衣，不只是安全，洗衣还挣钱，下一位是你？',
      link: 'http://wx.tingzan88.com/client',
      imgUrl: 'http://wx.tingzan88.com//Public/client/images/share_img.jpg',
      success: function (res){
      },
      cancel: function (res){
      }
    });
	//2.2 监听“分享到朋友圈”按钮点击、自定义分享内容及分享结果接口
    wx.onMenuShareTimeline({
      title: '只因您挺我，我洁净所能',
      link: 'http://wx.tingzan88.com/client',
      imgUrl: '{$Think.session.set.url}/Public/client/images/share_img.jpg',
      success: function (res){
        
      },
      cancel: function (res){
        
      }
    });
    //================
});
</script>